package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface ClientMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Client record);

    Client selectByPrimaryKey(Long id);

    List<Client> selectAll();

    int updateByPrimaryKey(Client record);

    // 高级 查询
    int queryCount(QueryObject qo);

    List<Client> queryList(QueryObject qo);

    //移入资源池
    void moveToPool(Long id);

    //尝试开发,吸纳客户
    void exploit(Client client);

    //标记为开发失败客户
    void developFailed(Client client);

    //标记为流失客户
    void lost(Client client);

    //升级正式客户
    void upgrade(Long id);

    //根据客户名称查询出客户的id-->小喻添加
    Long selectIdByName(String name);


    //根据身份证号查询客户信息
    Client selectByIdentitynum(String identitynum);
}